<ul>
<g:if test="${params.id == 'S0'}">
  <li id="0" class="selectedItem" onClick="updateStageWeek(this.id)"><a href="javascript:void(0)">准备怀孕</a></li>
</g:if>
<g:else>
  <g:if test="${params.id == 'S10000'}">
    <li id="10000X"  onClick="updateStageWeek(this.id)"><a href="javascript:void(0)">孕周</a></li>
  </g:if>
<g:each in="${months}" var="month" status="i">
<g:if test="${i == 0}">
<li id="${month}" class="selectedItem" onClick="updateStageWeek(this.id)"><a href="javascript:void(0)">第${i+1}月</a></li>
</g:if>
<g:else>
<li id="${month}" class="" onClick="updateStageWeek(this.id)"><a href="javascript:void(0)">第${i+1}月</a></li>
</g:else>  
</g:each>
</g:else>  
</ul>
